import request from "../utils/request"

/**
 * 文章分类请求API
 */

// 文章分类信息
export const getArticleChannelData = () => {
    return request({
        method: 'GET',
        url: '/getAllArticleChannel'
    })
}

// 新增文章分类
export const addArticleChannel = params => {
    return request({
        method: 'POST',
        url: '/addArticleChannel',
        data: params
    })
}

// 新增文章分类
export const updateArticleChannel = params => {
    return request({
        method: 'POST',
        url: '/updateArticleChannel',
        data: params
    })
}
